package Homework5;

public class Softdrinks extends Drinks{
    private double sugarcontent;

    public double getSugarcontent() {
        return sugarcontent;
    }

    public void setSugarcontent(double sugarcontent) {
        this.sugarcontent = sugarcontent;
    }

    public Softdrinks(String brand, double sugarcontent){
        super(brand);
        this.sugarcontent = sugarcontent;
    }
@Override
    public String advertisement(){
        return "This product contains sugar";
}
@Override
    public String component(){
        return "sugarcontent: " + getSugarcontent() + " ";
}
}
